﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UaerComSet.aspx.cs" Inherits="Platform_UaerComSet" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>负责小区</title>
    <link href="../Styles/style.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery132min.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="tabContent">
            <tr>
                <th lang="th">
                    小区查找
                </th>
            </tr>
            <tr>
                <td lang='td'>
                    <table style="border-collapse: separate" cellpadding="4" cellspacing="4">
                        <tr>
                            <td>
                                小区：
                                <NC:FTextBox ID="txtName" runat="server" Width="150px" placeholder="小区名称" />
                                <asp:Button ID="btnSearch" runat="server" class="btn btn3" OnClick="btnSearch_Click"
                                    Text="查 找" />
                            </td>
                        </tr>
                    </table>
                    <NC:FGridView1 ID="FGridView2" runat="server" AutoCreateNumber="true" ShowFooter="false"
                        AllowExportToExcel="false" AllowPaging="false" Width="100%">
                        <Columns>
                            <asp:BoundField DataField="CommuntyName" HeaderText="小区"></asp:BoundField>
                            <asp:TemplateField HeaderText="操作">
                                <ItemStyle HorizontalAlign="Center" Width="50px" />
                                <HeaderStyle HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <asp:Button ID="btnDel" runat="server" Text="添加" class="Gridbtn" CommandArgument='<%# Eval("CommuntyID") %>'
                                        OnClick="btnAdd_Click" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </NC:FGridView1>
                </td>
            </tr>
            <tr>
                <th colspan="4" lang="th">
                    已设置
                </th>
            </tr>
            <tr>
                <td lang="td">
                    <NC:FGridView1 ID="FGridView1" runat="server" AutoCreateNumber="true" ShowFooter="false"
                        AllowExportToExcel="false" AllowPaging="false" Width="100%">
                        <Columns>
                            <asp:TemplateField HeaderText="小区">
                                <ItemTemplate>
                                    <%# BLL.CommuntyService.GetCommuntyNameByID(Convert.ToInt32(Eval("CommuntyID")))%>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="删除">
                                <ItemStyle HorizontalAlign="Center" Width="50px" />
                                <HeaderStyle HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <asp:Button ID="btnDel" runat="server" Text="删除" class="Gridbtn" CommandArgument='<%# Eval("ID") %>'
                                        OnClientClick="return GiveTip(event,'您确定删除吗？')" OnClick="btnDel_Click" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </NC:FGridView1>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
